/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Ventas;

import java.sql.SQLException;
import java.util.Vector;

/**
 *
 * @author alrojas
 */
public class CVenta {
    
    public static boolean agregar(Venta venta) throws ClassNotFoundException, SQLException{
        return MVenta.agregar(venta);
    }
    
    public static Vector<String> dameUno(int codigo) throws SQLException, ClassNotFoundException{
        return MVenta.dameUno(codigo);
    }
    
    public static String dameUltimo()throws SQLException, ClassNotFoundException{
        return MVenta.dameUltimo();
    }
    
    public static Vector< Vector < String > > dameTodo() throws SQLException, ClassNotFoundException{
        return MVenta.dameTodo();
    }
    
    public static Vector < Vector < String > > dameProductos(int venta) throws SQLException, ClassNotFoundException{
        return MVenta.dameProductos(venta);
    }
    
    public static Vector < String > dameInfo(int codigo) throws SQLException, ClassNotFoundException{
        return MVenta.dameInfo(codigo);
    }
    
}
